package com.att.service.impl;

import com.att.bean.HolidaysBean;
import com.att.dao.HolidaysDaoMapper;
import com.att.service.HolidaysService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("holidaysService")
public class HolidaysServiceImpl implements HolidaysService {

    @Resource
    private HolidaysDaoMapper holidaysDaoMapper;

    @Override
    public List<HolidaysBean> findByCondition(HolidaysBean bean) {
        return holidaysDaoMapper.findByCondition(bean);
    }

    @Override
    public boolean insert(HolidaysBean bean) {
        return holidaysDaoMapper.insert(bean);
    }

    @Override
    public boolean update(HolidaysBean bean) {
        return holidaysDaoMapper.update(bean);
    }

    @Override
    public boolean delete(Integer id) {
        return holidaysDaoMapper.delete(id);
    }
}
